#ifndef MALLET_DRAWER_H
#define MALLET_DRAWER_H

#include "geometry/mallet.h"
#include "simple_shader_program.h"
#include "vertex_object.h"

class MalletDrawer : public VertexObject {
    public:
        explicit MalletDrawer(SimpleShaderProgram *program, Mallet *mallet)
            :VertexObject(program), m_mallet(mallet) {
                init();
            };
        virtual ~MalletDrawer() = default;

    public:
        void draw(QMatrix4x4 &modelViewProjectM) override;

    private:
        void init();
        Mallet *m_mallet = nullptr;
};
#endif // MALLET_DRAWER_H
